package com.java110.intf.community;

import com.alibaba.fastjson.JSONObject;
import com.java110.config.feign.FeignConfiguration;
import com.java110.dto.CommunityMemberDto;
import com.java110.dto.community.CommunityAttrDto;
import com.java110.dto.community.CommunityDto;
import com.java110.dto.repair.RepairSettingDto;
import com.java110.po.community.CommunityAttrPo;
import com.java110.vo.api.repair.StaffVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import java.util.List;
import java.util.Map;

/**
 * @ClassName IFloorInnerServiceSMO
 * @Description 小区楼接口类
 * @Author wuxw
 * @Date 2019/4/24 9:04
 * @Version 1.0
 * add by wuxw 2019/4/24
 **/
@FeignClient(name = "community-service", configuration = {FeignConfiguration.class})
@RequestMapping("/repairSettingApi")
public interface IRepairSettingInnerServiceSMO {


    @RequestMapping(value = "/saveRepairSetting", method = RequestMethod.POST)
    void saveRepairSetting(@RequestBody RepairSettingDto repairSettingDto);

    @RequestMapping(value = "/listRepairSettings", method = RequestMethod.GET)
    List<RepairSettingDto> listRepairSettings(RepairSettingDto repairSettingDto);

    @RequestMapping(value = "/getOneById", method = RequestMethod.POST)
    RepairSettingDto getOneById(Long id);

    @RequestMapping(value = "/updateRepairSetting", method = RequestMethod.POST)
    void updateRepairSetting(RepairSettingDto repairSettingDto);

    @RequestMapping(value = "/deleteRepairSetting", method = RequestMethod.POST)
    void deleteRepairSetting(Long id);

    @RequestMapping(value = "/saveRepairTypeUser", method = RequestMethod.POST)
    void saveRepairTypeUser(Map<String, Object> map);

    @RequestMapping(value = "/staff", method = RequestMethod.POST)
    StaffVo getStaff(Long repairType, Long staffId);

    List<StaffVo> listRepairTypeUsers(JSONObject reqJson);
}
